| 4D Chart v13CT GET DEPTH | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D Chart v13
 CT GET DEPTH 
         | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CT GET DEPTH ( area ; object ; horizontal ; vertical ) | ||||||||
| Parameter | Type | Description | ||||||
| area | Longint |   | 4D Chart area | |||||
| object | Longint |   | Object ID | |||||
| horizontal | Integer |   | Receives horizontal offset in points | |||||
| vertical | Integer |   | Receives vertical offset in points | |||||
The CT GET DEPTH command returns the horizontal and vertical offsets (depth) of the graph specified by area and object. This command works only with two-dimensional graphs.
horizontal is the horizontal offset, measured in points. A positive value denotes an offset to the right; a negative value denotes an offset to the left.

horizontal = -5, vertical = 5
vertical is the vertical offset, measured in points. A positive value denotes distance into the page from the X-axis; a negative value denotes distance out of the page from the X-axis.

Setting horizontal or vertical to zero removes the 3D effect for that dimension
This example checks the depth of the chart specified by $ChartID and, if it the 3D effect is not present, sets it.
 CT GET DEPTH(vArea;$ChartID;$Horiz;$Vert)
 If($Horiz=0) & ($Vert=0)
    CT SET DEPTH(vArea;$ChartID;10;10)
 End if
	Product:  4D Chart
	Theme:  CT Chart
	Number:  
        14545
        
        
        
	
	Created:  4D Chart 1